|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectobservations.QuantityRange
QuantityRange two quantities building a range from to. For
example '20 $ - 50 $'.
| Constructor Summary | |
QuantityRange(Quantity start,
boolean isStartInclusive,
Quantity end,
boolean isEndInclusive)
Basic constructor constructs a QuantityRange object. |
|
QuantityRange(Quantity start,
Quantity end)
Constructs a QuantityRange object with upper and lower bound inclusive. |
|
| Method Summary | |
boolean |
includes(Quantity value)
Tests whether the quantity is in boundaries of the range. |
static QuantityRange |
unlimited()
Gives a range that has no lower and no upper bound which is infinity. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QuantityRange(Quantity start,
boolean isStartInclusive,
Quantity end,
boolean isEndInclusive)
start - lower bound of range, null if there is no lower boundisStartInclusive - true if lower bound is inclusiveend - upper bound of range, null if there is no upper boundisEndInclusive - true if upper bound is inclusive
public QuantityRange(Quantity start,
Quantity end)
start - lower boundend - upper boundQuantityRange(Quantity, boolean, Quantity, boolean)| Method Detail |
public static QuantityRange unlimited()
public boolean includes(Quantity value)
value - quantity to test
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||